package com.ittest.pojo;

import java.io.Serializable;

/**
 * 员工实体类对象
 */
public class Employee implements Serializable {
    private Integer id;           // 员工编号，主键自增
    private String userName;      // 登录名
    private String password;      // 密码
    private Integer gender;       // 性别，1:男，2：女
    private String realName;      // 真实姓名
    private Integer dept_id;      // 所属部门id

    private Dept dept;        // 所属部门

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", realName='" + realName + '\'' +
                ", dept_id=" + dept_id +
                ", dept=" + dept +
                '}';
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }
}
